﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace markets
{
    public partial class adminManage_ui : Form
    {
        public adminManage_ui()
        {
            InitializeComponent();
        }

        private void 退出程序ToolStripMenuItem_Click(object sender, EventArgs e)
        {
             DialogResult xuanze=MessageBox.Show("你确定要退出程序吗？","退出",MessageBoxButtons.YesNo,MessageBoxIcon.Exclamation);
             if (xuanze == DialogResult.Yes) { Application.Exit(); }

        }

        private void 关于我ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("软件二班虞艳");
        }

        private void 查看员工ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            selectyuangong yuan = new selectyuangong();
            yuan.MdiParent = this;
            yuan.Show();
        }

        private void 人ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Addyuangong yuan = new Addyuangong();
            yuan.MdiParent = this;
            yuan.Show();
        }

        private void 查看管理员ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            admincha admin = new admincha();
            admin.MdiParent = this;
            admin.Show();
        }


        private void 添加管理员ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Adminadd admin = new Adminadd();
            admin.MdiParent = this;
            admin.Show();
        }

        private void guanli_Load(object sender, EventArgs e)
        {

        }

        private void 员工修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 查看销量ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            huizong hz = new huizong();
            hz.ShowDialog();
        }

        private void 退出登录ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            login lo = new login();
            lo.Show();
            this.Close();
            
          
            
        }

        private void adminManage_ui_FormClosed(object sender, FormClosedEventArgs e)
        {
            DialogResult xuanze = MessageBox.Show("你确定要退出程序吗？", "退出", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
            if (xuanze == DialogResult.Yes) { Application.Exit(); }

        }

    }
}